package messages.plain;

import java.security.PublicKey;

/**
 * The first msg for auth.
 * 
 * @author hb
 * 
 */
public class PlainAuthRequest extends PlainMessage
{
    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;

    private String originator;

    private int originatorNonce;

    public PlainAuthRequest( String originator, int originatorNonce ) {
        super();
        this.setOriginator( originator );
        this.setOriginatorNonce( originatorNonce );
    }

    /**
     * @param originator
     *            the originator to set
     */
    public void setOriginator( String originator ) {
        this.originator = originator;
    }

    /**
     * @return the originator
     */
    public String getOriginator() {
        return originator;
    }

    /**
     * @param originatorNonce
     *            the originatorNonce to set
     */
    public void setOriginatorNonce( int originatorNonce ) {
        this.originatorNonce = originatorNonce;
    }

    /**
     * @return the originatorNonce
     */
    public int getOriginatorNonce() {
        return originatorNonce;
    }

    @Override
    public void show() {
        System.out.println( "Message Content:\noriginator : " + this.originator
                + "\noriginator nonce: " + this.originatorNonce );
    }

}
